package com.usian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.TbOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Entity com.usian.pojo.TbOrder
 */
@Mapper
public interface TbOrderMapper extends BaseMapper<TbOrder> {
    /**
     * @mbg.generated
     */
    int deleteByPrimaryKey(String orderId);

    /**
     * @mbg.generated
     */
    int insert(TbOrder record);

    /**
     * @mbg.generated
     */
    int insertSelective(TbOrder record);

    /**
     * @mbg.generated
     */
    TbOrder selectByPrimaryKey(String orderId);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(TbOrder record);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKey(TbOrder record);
    //查询超时订单 当前时间和创建时间差大于2天的
    List<TbOrder> selectOvertimeOrder();
}